/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tbgb.process.movement;

import tbgb.components.twodimesion.PositionComponent;
import tbgb.components.twodimesion.VelocityComponent;

/**
 *
 * @author LưuQuang
 */
public class LinearMoveProcess implements MoveProcess
{
    private PositionComponent position;
    private VelocityComponent velocity;
    
    public LinearMoveProcess(PositionComponent pos, VelocityComponent vel)
    {
        this.position = pos;
        this.velocity = vel;
    }
    
    public void move(long eslapedGameTime) {
        this.position.add(this.velocity.X(), this.velocity.Y());
    }
}
